/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufba.lasid.v1.jitclouds.mda.datatypes.virtualization;

/**
 *
 * @author aliriosa
 */
public class Xen extends BasicHypervisor{
        
    public XenVirtualMachine startup(String idVirtualMachine){
        XenVirtualMachine machine = (XenVirtualMachine) getVirtualMachine(idVirtualMachine);
        return startup(machine);
    }
    
    public XenVirtualMachine startup(XenVirtualMachine machine){
        machine.execute("startup");
        return machine;
    }
    
    
    public XenVirtualMachine shutdown(String idVirtualMachine){
        XenVirtualMachine machine = (XenVirtualMachine) getVirtualMachine(idVirtualMachine);
        return shutdown(machine);
    }

    public XenVirtualMachine shutdown(XenVirtualMachine machine){
        machine.execute("shutdown");
        return machine;
    }
    
    public XenVirtualMachine reboot(String idVirtualMachine){
        XenVirtualMachine machine = (XenVirtualMachine) getVirtualMachine(idVirtualMachine);
        return reboot(machine);
    }

    public XenVirtualMachine reboot(XenVirtualMachine machine){
        machine.execute("reboot");
        return machine;
    }
    
    public XenVirtualMachine pause(String idVirtualMachine){
        XenVirtualMachine machine = (XenVirtualMachine) getVirtualMachine(idVirtualMachine);
        return pause(machine);
    }
        
    public XenVirtualMachine pause(XenVirtualMachine machine){
        machine.execute("pause");
        return machine;
    }
   
}
